<% unless current_page?(:controller => "products", :action => "index") %>
  <% content_for :sidebar do %>
    <% @sidebar_title = "Výrobek" %>

    <ul>
        <li><%= link_to "Editace výrobku", edit_admin_product_path(params[:product_id] || params[:id]) %></li>
      <% if permitted_to? :read, :admin_product_properties %>
        <li><%= link_to "Vlastnosti", admin_product_product_properties_path(params[:product_id] || params[:id]) %></li>
      <% end %>
      <% if permitted_to? :read, :admin_product_parameters %>
        <li><%= link_to "Parametry", admin_product_product_parameters_path(params[:product_id] || params[:id]) %></li>
      <% end %>
      <% if permitted_to? :read, :admin_variants %>
        <li><%= link_to "Varianty", admin_product_variants_path(params[:product_id] || params[:id]) %></li>
      <% end %>
      <% if permitted_to? :read, :admin_product_photos %>
        <li><%= link_to "Fotky", admin_product_product_photos_path(params[:product_id] || params[:id]) %></li>
      <% end %>
      <% if permitted_to? :read, :admin_product_categories %>
        <li><%= link_to "Kategorie", admin_product_product_categories_path(params[:product_id] || params[:id]) %></li>
      <% end %>
      <% if permitted_to? :read, :admin_product_supplements %>
        <li><%= link_to "Přílohy", admin_product_product_supplements_path(params[:product_id] || params[:id]) %></li>
      <% end %>
      <% if permitted_to? :read, :admin_product_accessories %>
        <li><%= link_to "Příslušenství", admin_product_product_accessories_path(params[:product_id] || params[:id]) %></li>
      <% end %>
        <li><%= link_to "Náhled", admin_product_path(params[:product_id] || params[:id]) %></li>
    </ul>
  <% end %>
<% end %>